﻿using JTTD.Common.Enum;
using System;
using JTTD.Common.Helper;

namespace JTTD.Domain.Dtos.Integral.Response
{
    /// <summary>
    /// 账单核算积分申请
    /// </summary>
    public  class IntegralApplyResponseDto:BaseResponseDto
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 会员号
        /// </summary>
        public string UserNumber { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 账单金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 文件地址
        /// </summary>
        public string FileUrl { get; set; }

        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 申请时间字符串
        /// </summary>
        public string CreateTimeStr => CreateTime.ToString("yyyy-MM-dd HH:mm:ss");

        /// <summary>
        /// 申请状态
        /// </summary>
        public ApplyStateEnum ApplyState { get; set; } 

        /// <summary>
        /// 申请状态
        /// </summary>
        public string ApplyStateStr => ApplyState.GetDescription();

        /// <summary>
        /// 拒绝原因
        /// </summary>
        public string Reason { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }
    }
}
